

#import "FAMMineTablebottomViewCell.h"
@interface FAMMineTablebottomViewCell()
@property (weak, nonatomic) IBOutlet UIView *FAMContactUsView;
@property (weak, nonatomic) IBOutlet UIView *FAMUserProtocolView;
@property (weak, nonatomic) IBOutlet UIView *FAMPrivacyView;

@end
@implementation FAMMineTablebottomViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    UITapGestureRecognizer *contactUsTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(FAM_contactUsTapClick:)];
    [self.FAMContactUsView addGestureRecognizer:contactUsTap];
    UITapGestureRecognizer *userProtocolTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(FAM_userProtocolTapClick:)];
    [self.FAMUserProtocolView addGestureRecognizer:userProtocolTap];
    UITapGestureRecognizer *privacyTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(FAM_privacyTapClick:)];
    [self.FAMPrivacyView addGestureRecognizer:privacyTap];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}
- (void)FAM_contactUsTapClick:(UITapGestureRecognizer *)sender{
    FAMMineContactUsView *contactUsView =  [[FAMMineContactUsView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [UIWindow.currentViewController.view addSubview:contactUsView];
}

- (void)FAM_userProtocolTapClick:(UITapGestureRecognizer *)sender{
    FAMMinePrivacyViewController *vc = [[FAMMinePrivacyViewController alloc]init];
    vc.FAMIsPrivacy = NO;
    [UIWindow.currentViewController.navigationController pushViewController:vc animated:YES];
}
- (void)FAM_privacyTapClick:(UITapGestureRecognizer *)sender{
    FAMMinePrivacyViewController *vc = [[FAMMinePrivacyViewController alloc]init];
    vc.FAMIsPrivacy = YES;
    [UIWindow.currentViewController.navigationController pushViewController:vc animated:YES];
}
- (IBAction)FAM_contactUsButtonClick:(UIButton *)sender {
    FAMMineContactUsView *contactUsView =  [[FAMMineContactUsView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [UIWindow.currentViewController.view addSubview:contactUsView];
}
- (IBAction)FAM_userProtocolButtonClick:(UIButton *)sender {
    FAMMinePrivacyViewController *vc = [[FAMMinePrivacyViewController alloc]init];
    vc.FAMIsPrivacy = NO;
    [UIWindow.currentViewController.navigationController pushViewController:vc animated:YES];
}
- (IBAction)FAM_privacyButtonClick:(UIButton *)sender {
    FAMMinePrivacyViewController *vc = [[FAMMinePrivacyViewController alloc]init];
    vc.FAMIsPrivacy = YES;
    [UIWindow.currentViewController.navigationController pushViewController:vc animated:YES];
}

@end
